package com.sean.sactiviti.service.impl;

import com.sean.sactiviti.DO.Vacation;
import com.sean.sactiviti.dao.VacationDao;
import com.sean.sactiviti.service.VacationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VacationServiceImpl implements VacationService {


    @Autowired
    private VacationDao vacationDao;

    @Override
    public int save(Vacation vacation) {
        return vacationDao.save(vacation);
    }

    @Override
    public int update(Vacation vacation) {
        return vacationDao.update(vacation);
    }

    @Override
    public Vacation search(String id) {
        return vacationDao.search(id);
    }
}
